<?php
    $id     = $_GET['id'];
    
    $sql    = "DELETE FROM orders WHERE id_o='" . $id . "'";
    $result = mysql_query($sql);
    $sql_2  = "DELETE FROM order_detail WHERE id_o='" . $id . "'";
    $re_2   = mysql_query($sql_2);
    
    if(($result)&&($re_2)){
        header("location:../administrator/index.php?page=orders");
    }
?>